package com.hsyt.pms.api.vo.org;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @Description: TODO
 * @author wangze@hsyuntai.com
 * @date 2019年2月12日 下午2:45:51
 */
public class GridData implements Serializable {

    private static final long serialVersionUID = -2916437753876138207L;
    //总页数
    private Integer total  = 0;
    //当前页
    private Integer page = 0;
    //查询出的记录数 - 记录总数
    private Integer records = 0;
    /** 包含实际数据的数组 */
    private List<Object>    rows = new ArrayList<>(50);

    public GridData() {
    }
    public GridData( Integer page,Integer total, Integer records) {
        this.total = total;
        this.page = page;
        this.records = records;
    }
    public GridData( Integer page, Integer total,Integer records, List<Object> rows) {
        this.total = total;
        this.page = page;
        this.records = records;
        this.rows = rows;
    }

    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public Integer getRecords() {
        return records;
    }

    public void setRecords(Integer records) {
        this.records = records;
    }

    public List<Object> getRows() {
        return rows;
    }

    public void setRows(List<Object> rows) {
        this.rows = rows;
    }
}
